/*
 * ModifiedSupport.h
 *
 *  Created on: 2010-8-30
 *      Author: try
 */

#ifndef MODIFIEDSUPPORT_H_
#define MODIFIEDSUPPORT_H_

namespace Ed {

  /**
   * 修改状态支持
   */
  class ModifiedSupport{
    public:
      ModifiedSupport():modified(false){

      }

      virtual ~ModifiedSupport() {
      }

      virtual inline bool isModified() const{
        return modified;
      }

      virtual inline void setModified(bool b) {
        if (modified == b) {
          return;
        }
        modified = b;
      }

    protected:
      //被修改状态
      bool modified;
  };

}

#endif /* MODIFIEDSUPPORT_H_ */
